[rllib] Write magic methods for SampleBatch/PartialRollout#2024
Merged
richardliaw merged 1 commit intoray-project:masterfrom May 17, 2018
Merged
[rllib] Write magic methods for SampleBatch/PartialRollout#2024richardliaw merged 1 commit intoray-project:masterfrom
richardliaw merged 1 commit intoray-project:masterfrom
Conversation
Some nice syntactic sugar.
|
Test FAILed. |
Contributor
|
jenkins retest this please |
|
Test PASSed. |
ericl
approved these changes
May 11, 2018
Collaborator
|
This is probably mergeable now, right? |
Contributor
Author
|
I'm using it in a few other local branches and it works fine. It passes the tests it modified anyway. |
Contributor
|
Thanks! merged. |
alok
added a commit
to alok/ray
that referenced
this pull request
May 18, 2018
* master: (22 commits) [xray] Fix bug in updating actor execution dependencies (ray-project#2064) [DataFrame] Refactor __delitem__ (ray-project#2080) [xray] Better error messaging when pulling from self. (ray-project#2068) Use source code in hash where possible (fix ray-project#2089) (ray-project#2090) Functions for flushing done tasks and evicted objects. (ray-project#2033) Fix compilation error for RAY_USE_NEW_GCS with latest clang. (ray-project#2086) [xray] Corrects Error Handling During Push and Pull. (ray-project#2059) [xray] Sophisticated task dependency management (ray-project#2035) Support calling positional arguments by keyword (fix ray-project#998) (ray-project#2081) [DataFrame] Improve performance of iteration methods (ray-project#2026) [DataFrame] Implement to_csv (ray-project#2014) [xray] Lineage cache only requests notifications about remote parent tasks (ray-project#2066) [rllib] Add magic methods for rollouts (ray-project#2024) [DataFrame] Allows DataFrame constructor to take in another DataFrame (ray-project#2072) Pin Pandas version for Travis to 0.22 (ray-project#2075) Fix python linting (ray-project#2076) [xray] Fix GCS table prefixes (ray-project#2065) Some tests for _submit API. (ray-project#2062) [rllib] Queue lib for python 2.7 (ray-project#2057) [autoscaler] Remove faulty assert that breaks during downscaling, pull configs from env (ray-project#2006) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
Everybody loves that sweet sweet (syntactic) sugar.
Since we typically care about the
.dataattribute, but may not want to justsubclass
dict(I assume), we can usedict's already implemented magic methodsto clean up syntax. These let us just treat rollouts more or less as dicts.
Related issue number
Replacement for PR #2002. Simply branched from current master and applied last
PR, but without any formatting changes.